Skip to content

Conversation

fangge1212
Copy link

@fangge1212 fangge1212 commented Sep 23, 2025

This PR adds support for AMD SEV-SNP on AWS platform.
Upstream PR: kubernetes-sigs/cluster-api-provider-aws#5605
openshift/api PR: openshift/api#2424

@fangge1212 fangge1212 marked this pull request as draft September 23, 2025 04:52
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 23, 2025
@openshift-ci openshift-ci bot requested review from nrb and RadekManak September 23, 2025 04:52
@fangge1212 fangge1212 changed the title machine_webhook: Add validation for CPUOptions in AWSMachineProviderConfig Support AMD SEV-SNP on AWS Sep 23, 2025
Copy link
Contributor

openshift-ci bot commented Sep 23, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign theobarberbany for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

openshift-ci bot commented Sep 23, 2025

@fangge1212: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-vsphere-ovn-upgrade 9c2bda0 link false /test e2e-vsphere-ovn-upgrade
ci/prow/e2e-nutanix 9c2bda0 link false /test e2e-nutanix
ci/prow/e2e-vsphere-static-ovn 9c2bda0 link false /test e2e-vsphere-static-ovn
ci/prow/e2e-vsphere-ovn-techpreview-serial 9c2bda0 link false /test e2e-vsphere-ovn-techpreview-serial

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@fangge1212 fangge1212 force-pushed the amd_sev_snp branch 3 times, most recently from f2bdae6 to d90c629 Compare September 28, 2025 07:48
Comment on lines 2649 to 2658
{
testCase: "with confidentialCompute empty",
modifySpec: func(p *machinev1beta1.AWSMachineProviderConfig) {
p.CPUOptions = &machinev1beta1.CPUOptions{
ConfidentialCompute: ptr.To(machinev1beta1.AWSConfidentialComputePolicy("")),
}
},
expectedOk: true,
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not have expected this to be a valid case.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean this should be a negative scenario?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Because the set of allowed values in the API definition do not allow this to be explicitly set to the empty string ("") this should not be an allowed configuration.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

…onfig

This change introduces webhook validation for the CPUOptions field in
AWSMachineProviderConfig. The validation ensures that if cpuOptions is
provided, its confidentialCompute value is either empty or one of the
supported policies:
- Disabled
- AMDEncryptedVirtualizationNestedPaging

Signed-off-by: Fangge Jin <[email protected]>
@fangge1212 fangge1212 marked this pull request as ready for review October 9, 2025 14:10
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 9, 2025
@openshift-ci openshift-ci bot requested review from damdo and theobarberbany October 9, 2025 14:11
@fangge1212 fangge1212 changed the title Support AMD SEV-SNP on AWS OCPCLOUD-3072: Support AMD SEV-SNP on AWS Oct 9, 2025
Update openshift/api to support confidential computing, specially
AMD SEV-SNP.

Signed-off-by: Fangge Jin <[email protected]>
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 9, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 9, 2025

@fangge1212: This pull request references OCPCLOUD-3072 which is a valid jira issue.

In response to this:

This PR adds support for AMD SEV-SNP on AWS platform.
Upstream PR: kubernetes-sigs/cluster-api-provider-aws#5605
openshift/api PR: openshift/api#2424

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants